package com.cn.jsdr.controller;

import com.cn.jsdr.service.RediService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("redis")
public class RedisController {
    @Autowired
    private RediService rediService;
    @RequestMapping("resql")
    @ResponseBody
    public Map getSqlMap(String sqlId){
        return rediService.refreshSql(sqlId);
    }
}
